//
//  WeekPageTool.m
//  MindBox
//
//  Created by MS on 16-1-15.
//  Copyright (c) 2016年 Lemon. All rights reserved.
//

#import "WeekPageTool.h"
#import "INTERFACE.h"
#import "LGHttpTool.h"
@implementation WeekPageTool
+ (void)weekPageDataWithSuccess:(void (^)( WeekPageModel * data))success
                               failure:(void (^)( NSError *error))failure
{
    [LGHttpTool GET:Week_Detail_URL parameters:nil success:^(id responseObject) {
        WeekPageModel * data = [WeekPageModel mj_objectWithKeyValues:responseObject[@"data"]];
    
        if (success) {
            
            success(data);
        }
        
    } failure:^(NSError *error) {
        if (failure) {
            failure(error);
        }
    }];
    
}

@end
